package com.wnxy.admin.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@Data
@TableName("t_alarm_settings")
@ApiModel(value = "AlarmSettings对象", description = "")
public class AlarmSettings implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("唯一标识报警设置。")
    @TableId(value = "alarm_id", type = IdType.AUTO)
    @Excel(name = "ID", width = 10)
    private Long alarmId;

    @ApiModelProperty("报警名称")
    @Excel(name = "报警名称", width = 30, needMerge = true)
    private String alarmName;

    @ApiModelProperty("关联充电站信息表，确定报警设置所属的站点。")
    @Excel(name = "充电站序号", width = 10, needMerge = true)
    private Long stationId;

    @ApiModelProperty("关联充电桩信息表，确定报警设置所属的充电桩")
    @Excel(name = "充电桩序号", width = 10, needMerge = true)
    private Long chargerId;

    @ApiModelProperty("报警的级别，-1 严重，0 紧急，1 一般")
    @Excel(name = "报警级别", width = 20, needMerge = true, replace = {"一般_1", "紧急_0", "严重_-1"})
    private Integer alarmLevel;

    @ApiModelProperty("报警设置的状态,0：禁用状态，1：启用状态，默认值为1。")
    @Excel(name = "状态", width = 20, needMerge = true, replace = {"禁用_0", "启用_1"})
    private Integer status;

    @ApiModelProperty("逻辑删除字段，0：未删除")
    @Excel(name = "逻辑删除", width = 20, needMerge = true, replace = {"未删除_0", "已删除_*"})
    private Integer flag;


}
